package com.example.studentsystem;

import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class OneActivity extends AppCompatActivity {

    private Button mButton1;
    private Button mButton2;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_one);
        mButton1.findViewById(R.id.button1);
        mButton2.findViewById(R.id.button2);
        mButton1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(OneActivity.this,LoginActivity.class);
                startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(OneActivity.this).toBundle());
            }
        });
        mButton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(OneActivity.this, RegisterActivity.class);
                startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(OneActivity.this).toBundle());
            }
        });
    }
}
